<template>
	<view class="content">

		<view class="header">
			<view :style="{height: systemBarHeight + 'px'}">
			</view>
			<view class="navbar">
				<image src="/static/xy/fh.png" mode="" @click="fh()"></image>
				<text>使用费</text>
			</view>
		</view>

		<view class="list">
			<view class="list_item" v-for="(item,index) in feeList" :key="index">
				<view class="tit">
					<view class="tit1">
						<text>2025年1月份教练系统使用费</text>
					</view>
					<view class="tit2">
						<text>5元</text>
					</view>
				</view>
				<view class="starts">
					<view class="starts1" v-if="item.starts==false">
						<text>去支付</text>
					</view>
					<view class="starts2" v-if="item.starts==true">
						<text>已完成</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemBarHeight: 0,
				feeList: [{
						starts: false
					},

					{
						starts: false
					},

					{
						starts: true
					}
				]
			}
		},
		mounted() {
			/* 手机顶部高度 */
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
			fh() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {

		width: 750rpx;
		height: 1624rpx;
		background: #F5F5F5;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		background: #FFFFFF;
	}

	.navbar {
		height: 88rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;

		>image {
			width: 48rpx;
			height: 48rpx;
			position: absolute;
			left: 32rpx;
		}

		>text {

			font-family: PingFang SC, PingFang SC;
			font-weight: 600;
			font-size: 34rpx;
			color: #43484D;

		}
	}

	.list {
		padding-top: 48rpx;

		.list_item {
			width: 95%;
			margin: 0 auto 32rpx;
			padding-bottom: 24rpx;
			background: #FFFFFF;
			border-radius: 16rpx 16rpx 16rpx 16rpx;

			.tit {
				width: 93%;
				margin: auto;
				display: flex;
				padding-top: 24rpx;
				align-items: center;
				justify-content: space-between;

				.tit1 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 32rpx;
					color: #43484D;
				}

				.tit2 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #FB4747;
				}
			}

			.starts {
				width: 93%;
				margin: 24rpx auto 0;
				display: flex;
				justify-content: space-between;

				.starts1 {
					width: 144rpx;
					height: 64rpx;
					background: #ECFFF8;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #53DDA8;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-left: auto;
				}
				.starts2{
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #999999;
					margin-left: auto;
				}
			}
		}
	}
</style>